package news

class News {

    String title
    String URL
    static belongsTo = [productType: ProductType]

    Date createDate
    static constraints = {
        title(blank: false,maxSize: 30)
        URL(blank: false)
        productType(blank:false)

    }
    static hasMany = [hitLog: HitLogs]
    static mapping = {}
}